package com.qf.commerce.mapper;

import com.qf.commerce.common.dto.ContractSelectDto;
import com.qf.commerce.entity.Contract;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/*
 * @author 358
 * @since JDK 1.8
 * @data 2023/9/15 17:16
*/

public interface ContractMapper {

    int insert(Contract record);


    Contract selectByPrimaryKey(Integer contractId);

    int updateByPrimaryKeySelective(Contract record);

    int updateByPrimaryKey(Contract record);

    List<Contract> selectAll();

    int updateStatusById(@Param("contractId") Integer contractId,@Param("status") Integer status);
    List<Contract> select(ContractSelectDto ContractSelectDto);

}